package com.micromall.common.utils;

import java.math.BigDecimal;

/**
 * 字典类
 * Created by Dante Fung on 2017/6/20.
 */
public class Dict {


   public enum YesOrNo {

        Yes("Yes","Y"),No("No","N");

        private String name;
        private String code;
        YesOrNo(String name, String code){
            this.code = code;
            this.name = name;
        }

       public String getName() {
           return name;
       }

       public void setName(String name) {
           this.name = name;
       }

       public String getCode() {
           return code;
       }

       public void setCode(String code) {
           this.code = code;
       }
   }

    public interface Sys_User{

        enum Suspend_Status{
            Suspended(new BigDecimal(0),"未限制"),
            Unsuspend(new BigDecimal(1),"已限制");

           private BigDecimal code;
           private String desc;
           Suspend_Status(BigDecimal code, String desc){
                this.code = code;
                this.desc = desc;
           }

            public BigDecimal getCode() {
                return code;
            }

            public void setCode(BigDecimal code) {
                this.code = code;
            }

            public String getDesc() {
               return desc;
           }

           public void setDesc(String desc) {
               this.desc = desc;
           }
       }

         enum Freeze_Status {

             Freezed(new BigDecimal(1),"已冻结"),UnFreezed(new BigDecimal(0),"未冻结");

            private String name;
            private BigDecimal code;
             Freeze_Status(BigDecimal code,String name){
                this.code = code;
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

             public BigDecimal getCode() {
                 return code;
             }

             public void setCode(BigDecimal code) {
                 this.code = code;
             }
         }
         enum User_Type {

             Member("m","会员"),Company("c","公司");

            private String name;
            private String code;
             User_Type(String code, String name){
                this.code = code;
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }
        }

        enum Sec_Code {

            TXSQ("TX","提现申请"),
            DDCX("DD","订单查询"),
            YHCX("YH","用户查询"),
            JJMX("JJ","奖金明细");

            private String name;
            private String code;
            Sec_Code(String code, String name){
                this.code = code;
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }
        }

        enum RegisterStatusCode {
            AUTO_REGISTER_SUCCESS("1000","自动注册成功!"),
            AUTO_REGISTER_FAIL("2000","自动注册失败!"),
            HAD_EXIST("3000","用户已存在!");

            private String name;
            private String code;
            RegisterStatusCode(String code, String name){
                this.code = code;
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }
        }

    }

    public interface BusiOrder {

       enum  Query_Type {

           TOPAY("14855e29c2d489f11b719a82a1e8fdeb","待付款"),
           PAYED("a729230892f76445e49ed2058d03538e","已支付[待收货]"),
           TOCOMMENT("089f31b990aa530c5863dbc9ff606016","待评价"),
           ALL("a181a603769c1f98ad927e7367c7aa51","全部");

           private String name;
           private String code;
           Query_Type(String code, String name){
               this.code = code;
               this.name = name;
           }

           public String getName() {
               return name;
           }

           public void setName(String name) {
               this.name = name;
           }

           public String getCode() {
               return code;
           }

           public void setCode(String code) {
               this.code = code;
           }


       }

        enum  PayStatus {

            PAYED("20","已支付"),
            TOPAY("10","待付款");

            private String name;
            private String code;
            PayStatus(String code, String name){
                this.code = code;
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }


        }

        enum  DISCOUNT_TYPE {

            DIS01("DIS01","(DIS01)500-1499 9.5折"),
            DIS02("DIS02","(DIS02)1500-3499 9折"),
            DIS03("DIS03","(DIS03)3500-6999 8.5折"),
            DIS04("DIS04","(DIS04)7000-14999 8折"),
            DIS05("DIS05","(DIS05)15000-29999 7.5折"),
            DIS06("DIS06","(DIS06)>=30000 7折");

            private String name;
            private String code;
            DISCOUNT_TYPE(String code, String name){
                this.code = code;
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }


        }

    }

    public interface BusiCaer {

        enum CartItemStatusCode {
            NEW("1000","新建清单项!"),
            PREPARE("2000","准备生成订单!"),
            FINISH("3000","已生成订单!");

            private String name;
            private String code;
            CartItemStatusCode(String code, String name){
                this.code = code;
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }
        }

    }

}
